# -*- coding: utf-8 -*-
# Project  : JXC
# FileName : ComHandler.py
# Time     : 2020/7/31 9:52
# Author  : Mason101

from random import randint
from datetime import datetime


def get_random_name(file_type):
    tt = datetime.now()
    name = f"{tt.year}{tt.month}{tt.day}{tt.hour}{tt.minute}{tt.second}{str(randint(1000, 9999))}.{file_type}"
    print(name)
    return name


